<?

		$sql['order'] = "realname, ".$sql['order'];
		
		
		function searchbreak(&$c,$start='',$end='') {
			static $last;
			static $count;
			static $hidden;

			if (empty($c)) {//its the last one
				if ($last) {
					print $end;
					if ($hidden) {
						print "($hidden hidden images - <a href=\"".linktoself(array('user_id'=>$last,'delete'=>array('opt','page')))."\">view all</a>)";
					}
				}
				return;
			}
			
			$user_id = $c['user_id'];
			
			if ($user_id != $last) {
			
				if ($last) {
					print $end;
					if ($hidden) {
						print "($hidden hidden images - <a href=\"".linktoself(array('user_id'=>$last,'delete'=>array('opt','page')))."\">view all</a>)";
					}
				}
				
				print "<h4>".he($c['realname']);
					print " (<a href=\"".linktoself(array('user_id'=>$user_id,'delete'=>array('opt','page')))."\">Show only</a>)";
				print "</h4>";

					
				
				print $start;
				$count = 1;
				$hidden =0;
			} else {
				$count++;
				if ($count > 4) {
					$GLOBALS['opt']['has_hidden'] = true;
					$GLOBALS['resultCount']--;
					$hidden++;
					return false;
				}
			}
			
			$last = $user_id;
			return true; //we dont disable any images...
		}
		
		$opt['opt'] = 'users';
		$opt['title'] = "Images in Contributor order"; 

